package defs

import (
	"ManageServer/defs/accompanyRecord"
	"ManageServer/defs/captcha"
	"ManageServer/defs/config"
	"ManageServer/defs/equipmentDispatch"
	"ManageServer/defs/hisMessage"
	"ManageServer/defs/operation"
	"ManageServer/defs/patient_admiss"
	"ManageServer/defs/patient_leave"
	"ManageServer/defs/staffRecord"
	"github.com/gin-gonic/gin"
)
import "ManageServer/defs/user"
import "ManageServer/defs/log"
import "ManageServer/defs/file"
import "ManageServer/defs/wechat"

func RegisterRoutes(r *gin.RouterGroup) {
	new(user.Controller).RegisterRoute(r)
	new(log.Controller).RegisterRoute(r)
	new(file.Controller).RegisterRoute(r)
	new(staffRecord.Controller).RegisterRoute(r)
	new(operation.Controller).RegisterRoute(r)
	new(config.Controller).RegisterRoute(r)
	new(equipmentDispatch.Controller).RegisterRoute(r)
	new(patient_admiss.Controller).RegisterRoute(r)
	new(patient_leave.Controller).RegisterRoute(r)
	new(accompanyRecord.Controller).RegisterRoute(r)
	new(captcha.Controller).RegisterRoute(r)
	//new(inpatient.Controller).RegisterRoute(r)
}

func RegisterRoutesWithoutAuth(r *gin.RouterGroup) {
	new(wechat.Controller).RegisterRoute(r)

}

func RegisterRoutesApiToken(r *gin.RouterGroup) {
	new(hisMessage.Controller).RegisterRoute(r)
}
